package com.empire.module.member.controller.admin.user.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.empire.framework.excel.core.annotations.DictFormat;
import com.empire.framework.excel.core.convert.DictConvert;
import com.empire.module.system.enums.DictTypeConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 人员 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免用户导入有问题
public class MemberImportExcelVO {

    @ExcelProperty("身份证号码")
    private String idcard;

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty(value = "性别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.USER_SEX)
    private Integer sex;

}
